<?php
/**
 * 获取用户后台操作记录
 * 简单粗暴的实现
 */

    function manage_log_success(){
		$data['name']=session('username');
		$data['file']=get_url();
		$data['ip']=get_client_ip();
		$data['time']=time();
		$data['status']="成功";
		$log = M('log')->add($data);
	}
	
	function manage_log_error(){
        $data['name']=session('username');
        $data['file']=get_url();
        $data['ip']=get_client_ip();
        $data['time']=time();
        $data['status']="失败";
        $log = M('log')->add($data);
    }

